package com.zmn.oms.dubbo.interfaces.zmn.master.part;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dro.part.CheckOrderPartIndicatorsDIO;
import com.zmn.oms.dubbo.dto.common.work.OrderPartDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 类描述: 配件查询 Dubbo接口
 *
 * @author: liudi
 * @since: 2022/03/22 16:45
 */
@Api(value = "配件查询接口", tags = {"配件查询"})
public interface PartListRemoteService {

	/**
	 * 根据订单ID查询出内采配件
	 *
	 * @param orderId 订单ID
	 * @return
	 * @author liudi
	 * @since: 2022/3/22 16:41
	 */
	@ApiOperation(value = "获取配件列表")
	ResponseDTO<List<OrderPartDRO>> listInSourcingPartByOrderId(@ApiParam(value = "订单ID") @NotNull(message = "订单号不能为空") Long orderId);

	/**
	 * 校验工单配件指标
	 *
	 * @param checkOrderPartIndicatorsDIO
	 * @return
	 */
	@ApiOperation(nickname = "checkOrderGoodsIndicators", value = "校验工单配件指标", notes = "校验工单配件指标")
	ResponseDTO checkOrderGoodsIndicators(@NotNull(message = "参数不能为空") CheckOrderPartIndicatorsDIO checkOrderPartIndicatorsDIO);
}
